<div id="slider-wrapper">
         <div class="slider-container">
                <div class="slider">
                        <ul class="slides">
                        		<?php
								global $slider_properties;
								
								$slider_properties = array();
								
								$slider_args = array(
										'post_type' => 'property',
										'posts_per_page' => 5,
										'meta_query' => array(
															array(
																'key' => 'locality_featured',
																'value' => '1',
																'compare' => 'LIKE'
															)
														)
								);
								
								$slider_query = new WP_Query( $slider_args );						
								while ( $slider_query->have_posts() ) : 
								$slider_query->the_post(); 
								$slider_properties[] = intval($post->ID);
									
								?>
                                <li class="slide">
                                        
                                        <?php 
											if ( has_post_thumbnail() ) 
											{								
												?>
													<a href="<?php the_permalink(); ?>">
														<?php the_post_thumbnail('property-big-post-thumb');?>
													</a>
												<?php
											}
										?>
                                        <div class="slide-info">
                                                <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
                                                <p><?php locality_excerpt(18); ?></p>
                                                <h4 class="price"><?php theme_currency(); echo number_format(intval(get_post_meta($post->ID, 'locality_property_price', true))); ?></h4>
                                                <a class="readmore-btn" href="<?php the_permalink(); ?>"><?php _e('Read more','locality'); ?></a>
                                        </div>
                                
                                </li>
                                
                                <?php
								endwhile;
								wp_reset_query();
								?>
                                                                
                        </ul>
                        <a class="prev" href="#"></a>
                        <a class="next" href="#"></a>
                </div>
        </div>
         
        <!-- SEARCH OPTIONS -->
        <div class="advancesearch-wrapper-home">
                <div class="search-options">
                      <div class="advancesearch-head-home">
                            <h3><?php _e('Property Search','locality'); ?></h3>
                      </div>
                      <form class="advance-search-form-home" action="<?php echo home_url(); ?>" method="get">
                            <?php get_template_part( 'advance-search' ); ?>
                     </form>
                </div>   
         </div><!-- ADVANCE SEARCH WRAPPER CLOSED -->
           						
</div><!-- SLIDER WRAPPER...................................................................................... CLOSED -->